home *** CD-ROM | disk | FTP | other *** search
- /************************************************************************/
- /**** My favourite IO routines ****/
- /************************************************************************/
-
-
- /**** Standard-error subroutine ****/
- /**** exits with errnum ****/
- /**** premsg: msg to show first, errnum: ****/
- /* 0: regular abort */
- /* 1: memory allocation error */
- /* 2: io error */
- /* 3: number out of range */
- /* 4: buffer overflow */
- /* 5: syntax error */
- void t_error(char *premsg,int errnum);
-
- /* get filename ************************************************/
- char *t_getfnam(void);
-
- /**** opens file, if name==NULL -> asks for file name ****/
- /**** t_path must be set ****/
- /**** if using UNIX etc, change backslashes in function body ****/
- FILE *t_fopen(char *name, char *mode);
-
- /**** Menus ****/
- /**** menu[]={"first item","second item","" } ****/
- /**** returns number of selected item ****/
- int ar_menu(char *menu[]);
-